<template>
  <!-- BOOLEAN 布尔值 -->
  <el-radio-group
    v-if="props.columnData.fieldTypeCode == 'BOOLEAN'"
    v-model="props.itemData[props.columnData.fieldCode]"
    :disabled="props.columnData.disabled"
    @change="handelChange"
  >
    <el-radio :label="1">是</el-radio>
    <el-radio :label="0">否</el-radio>
  </el-radio-group>
</template>

<script setup name="VinputNumber">
import { ref, reactive, computed } from 'vue'
import { mixinsData } from '../hooks/mixinsData'

const props = defineProps({
  columnData: {
    type: Object,
    default: () => {}
  },
  itemData: {
    type: Object,
    default: () => {}
  },
  rules: {
    type: Object,
    default: () => {}
  }
})

const { handelBlur, handelChange } = mixinsData(props.columnData, props.itemData, props.rules)
</script>
<style lang="scss"></style>
